﻿<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="../Master.xslt" type="text/xsl"?>
<content doctype="xhtml1-strict">
  <param name="language" select="'en'" />
  <html output:xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:output="urn:output" xmlns:resourceHelper="urn:resourceHelper">
    <head>
      <title>RenderPartial Example</title>
      <meta name="description" content="renderPartial, multi-lingual, localization, resources" />
      <link rel="stylesheet" type="text/css" href="/_Content/Site.css" />
      <style>
        .right {float: right;}
        .clear {clear: both;}
      </style>
    </head>
    <body>
      <pageContent>
        <div class="right">
          <a>
            <actionLink action="SampleRenderPartial">
              <language>en</language>
            </actionLink>
            <content>English</content>
          </a>|
          <a>
            <actionLink action="SampleRenderPartial">
              <language>fr</language>
            </actionLink>
            <content>français</content>
          </a>
        </div>
        <div class="clear">
          <p>
            This page contains two renderPartial controls.  They are conditionally rendered depending on a template parameter to indicate the language.<br />
            <a href="javascript:alert('{{resourceHelper:GetString('test')}}');">Click here...</a><br />
            <!-- xslt controlled resource - looks up string in ~/Views/Resources.xml -->
            <resourceString name="Registrations.Index.Title" /><br />
            <!-- code controlled resource - looks up string using resource helper -->
            <valueOf select="resourceHelper:GetString('test')" />
          </p>
          <renderPartial condition="$language='en'" viewName="'SamplePartialView_en'" />
          <renderPartial condition="$language='fr'" viewName="'SamplePartialView_fr'" />
          <debug />
        </div>
        <wizardNav name="SampleRenderPartial" />
      </pageContent>
    </body>
  </html>
</content>